<script setup lang="ts">
import {GreetService, User} from "../../../bindings/quant/backend/service";
import {ref} from "vue";
import {NButton} from "naive-ui";

const result = ref<string>('')

const doGetError = () => {
  GreetService.GetError().then((resultValue: User) => {
    console.log(resultValue)
  }).catch((err: Error) => {
    result.value = err.message;
  });
}
</script>

<template>
  <n-flex>
    <n-button type="success" tertiary @click="doGetError">GetError</n-button>
    <div>{{ result }}</div>
  </n-flex>
</template>

<style scoped>

</style>